<template>
  <div id="main">
<!--    <HeaderPlus
        v-if="parseInt(window.sessionStorage.getItem('activeIndex'))===0||parseInt(window.sessionStorage.getItem('activeIndex'))===1"/>
    <Header v-else/>-->
    <HeaderPlus />
    <div id="content">
      <router-view v-slot="{ Component }">
        <keep-alive>
          <component :is="Component"/>
        </keep-alive>
      </router-view>
    </div>
    <TabBar/>
    <!--    <router-view name="detail"/>-->
  </div>
</template>

<script>
import TabBar from './components/TabBar'
import HeaderPlus from './components/Header/HeaderPlus'
import Header from './components/Header/index'


window.onload = function () {
  document.addEventListener('touchstart', function (event) {
    if (event.touches.length > 1) {
      event.preventDefault()
    }
  })
  document.addEventListener('gesturestart', function (event) {
    event.preventDefault()
  })
}

export default {
  name: 'App',
  setup() {

  },
  components: {TabBar, HeaderPlus, Header}
}
</script>

<style scoped>
/*#content >>> .nut-tabs__content {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}*/

#content .movie_menu {
  width: 100%;
  height: 45px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  z-index: 10;
}

.movie_menu .city_name {
  margin-left: 20px;
  height: 100%;
  line-height: 45px;
}

/*.movie_menu .city_name.active {
  color: #ef4238;
  border-bottom: 2px #ef4238 solid;
}*/

.movie_menu .city_name.router-link-active {
  color: #ef4238;
  border-bottom: 2px #ef4238 solid;
}

.movie_menu .hot_swtich {
  display: flex;
  height: 100%;
  line-height: 45px;
}

.movie_menu .hot_item {
  font-size: 15px;
  color: #666;
  width: 80px;
  text-align: center;
  margin: 0 12px;
  font-weight: 700;
}

/*.movie_menu .hot_item.active {
  color: #ef4238;
  border-bottom: 2px #ef4238 solid;
}*/

.movie_menu .hot_item.router-link-active {
  color: #ef4238;
  border-bottom: 2px #ef4238 solid;
}

.movie_menu .search_entry {
  margin-right: 20px;
  height: 100%;
  line-height: 45px;
}

/*.movie_menu .search_entry.active {
  color: #ef4238;
  border-bottom: 2px #ef4238 solid;
}*/
.movie_menu .search_entry.router-link-active {
  color: #ef4238;
  border-bottom: 2px #ef4238 solid;
}

.movie_menu .search_entry i {
  font-size: 24px;
  color: red;
}
</style>
